home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / ASAP / contextnode.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-08  |  1.6 KB  |  43 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * AContextNode wrapper class                                                *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_ContextNode_H
  12. #define ASAP_ContextNode_H
  13.  
  14. extern "C"
  15. {
  16.  #include <Proto/IFFParse.h>
  17. }
  18.  
  19. class AContextNode : public ContextNode
  20. {
  21.  public:
  22.  inline static AContextNode * CurrentChunk(struct IFFHandle * iff);
  23.  inline static AContextNode * FindPropContext(struct IFFHandle * iff);
  24.  inline AContextNode * ParentChunk();
  25. };
  26. //----------------------------------------------------------------------------
  27. AContextNode * AContextNode::CurrentChunk (struct IFFHandle * iff)
  28. {
  29.  return (AContextNode *) ::CurrentChunk(iff);
  30. }
  31. //----------------------------------------------------------------------------
  32. AContextNode * AContextNode::FindPropContext (struct IFFHandle * iff)
  33. {
  34.  return (AContextNode *) ::FindPropContext(iff);
  35. }
  36. //----------------------------------------------------------------------------
  37. AContextNode * AContextNode::ParentChunk ()
  38. {
  39.  return (AContextNode *) ::ParentChunk(this);
  40. }
  41.  
  42. #endif
  43.